<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>块级、行内、行内块标签示例</title>
    <style>
        /* 块级标签转成其他类型 */
        .block-to-inline {
            display: inline;
            background-color: lightblue;
    
            
        }
        .block-to-inline-block {
            display: inline-block;
            width: 150px;
            height: 50px;
            background-color: lightgreen;
        }

        /* 行内标签转成其他类型 */
        .inline-to-block {
            display: block;
            background-color: lightcoral;
            font-family: kaiti;
            font-size: 20px;
        }
        .inline-to-inline-block {
            display: inline-block;
            width: 80px;
            height: 30px;
            background-color: lightyellow;
        }

        /* 行内块标签转成其他类型 */
        .inline-block-to-block {
            display: block;
            background-color: lightpink;
        }
        .inline-block-to-inline {
            display: inline;
            background-color: lightseagreen;
        }
    </style>
</head>
<body>
    <!-- 块级标签示例 -->
    <div class="original-block">原始块级元素</div>
    <div class="block-to-inline">块级转行内</div>
    <div class="block-to-inline-block">块级转行内块</div>

    <!-- 行内标签示例 -->
    <span class="original-inline">原始行内元素</span>
    <span class="inline-to-block">行内转块级</span>
    <span class="inline-to-inline-block">行内转行内块</span>

    <!-- 行内块标签示例 -->
    <input type="text" value="原始行内块元素" class="original-inline-block">
    <input type="text" value="行内块转块级" class="inline-block-to-block">
    <input type="text" value="行内块转行内" class="inline-block-to-inline">
</body>
</html>
